<?php
/*
 * @Descripttion: 
 * @Author: dedeye
 * @Date: 2020-02-27 12:47:55
 * @LastEditors: dedeye
 * @LastEditTime: 2020-02-27 16:12:19
 */

namespace app\admin\model;

use think\Model;

class Rule extends Model
{
    protected function getStatusTextAttr($value,$data)
    {
        $status = [-1=>'删除',0=>'禁用',1=>'正常',2=>'待审核'];
        return $status[$data['status']];
    }
}
